(ns acst.routes.home

  (:require [compojure.core :refer :all]
            [hiccup.core :refer [html]]
            [hiccup.form :refer :all]
            [selmer.parser :as parser]
            [acst.utils.core :refer :all]
            [acst.models.users :refer [login-require admin-require]]
            [acst.models.activities :as act]
            [ring.util.anti-forgery :as af]
            [clojure.data.json :as json]
            [noir.session :as session]
            [clojure.java.io :as io]))

(defn error-item [[error]]
  [:div.error error])

;(defn home-page []
;  (parser/render-file
;    "/app/home/home.html"
;    {}))
;
;(defroutes home-routes
;           (GET "/home" [] home-page)
;           (GET "/home" [] home-page))